/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : MqcpDeviceInfoReport.h
  * @brief          : MqcpDeviceInfoReport
  ******************************************************************************
  * @attention
  * 本文件用于  设备信息上报
  * @20210414:文件模板第一次生成
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MQCP_STRATEGY_H__
#define __MQCP_STRATEGY_H__

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

#include <rtthread.h>
#include "mqcpalldefine.h"
#include "SysCrc.h"

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

typedef struct
{
    // 是否已使用
	uint8_t used;
    // 命令字
	uint8_t Cmd;
    // 处理函数
	MqcpDataDef *(*handler)(MqcpMessageDef *);

}MqcpRouterDef;

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */







/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */



extern MqcpDeviceDef MqcpDevice;
extern MqcpNetDef	MqcpNet;



/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/

extern uint16_t addRouter(MqcpRouterDef route);
extern MqcpRouterDef findRouter(uint8_t cmd);



/* USER CODE BEGIN EFP */

/* USER CODE END EFP */



#endif /* __DO_TASK_H */

/************************ (C) COPYRIGHT CunJu *****END OF FILE****/
